package com.rlz.framemm.mode.prototype

/**
 * Created by RLZ
 * on 2021/11/16
 *
 */
class Message : Cloneable {
    lateinit var name: String
    private var ex: ExpandDetail = ExpandDetail()

    public override fun clone(): Message {
        val message = super.clone() as Message
        message.ex = this.ex.clone()
        return message
    }

    fun setDetail(price: Double) {
        ex.price = price
    }

    fun send() {
        println("$name 今天花了 : ${ex.price} 元")
    }
}